import dayjs, { Dayjs } from 'dayjs';

export const initialDateMap = new Map<string, [Dayjs, Dayjs]>([
  ['day', [dayjs().subtract(6, 'day'), dayjs()]],
  ['date', [dayjs().subtract(6, 'day'), dayjs()]],
  ['month', [dayjs().subtract(2, 'month'), dayjs()]],
  ['year', [dayjs().subtract(1, 'year'), dayjs()]],
]);
export const dateFormatterMap = new Map<string, string>([
  ['day', 'YYYY-MM-DD'],
  ['date', 'YYYY-MM-DD'],
  ['month', 'YYYY-MM'],
  ['year', 'YYYY'],
]);
export const sumTextMap = new Map<string, string>([
  ['day', 'statistics.work.daySta'],
  ['date', 'statistics.work.daySta'],
  ['month', 'statistics.work.monthSta'],
  ['year', 'statistics.work.yearSta'],
]);
export const selectTypeMap = new Map<string, string>([
  ['day', 'dateRange'],
  ['date', 'dateRange'],
  ['month', 'dateMonthRange'],
  ['year', 'dateYearRange'],
]);
